package com.lagou.req;

import com.lagou.client.RpcConsumer;

/**
 * @author xsl
 * @date 2021/4/5 21:56
 * @Description: RequestInfo
 */
public class RequestInfo {
    /**
     * 最后一次耗时
     */
    private int elapsedTime;
    /**
     * 最后一次系统时间
     */
    private long lastTime;

    private RpcConsumer rpcConsumer;

    public RequestInfo(int elapsedTime, long lastTime) {
        this.elapsedTime = elapsedTime;
        this.lastTime = lastTime;
    }

    public int getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(int elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public long getLastTime() {
        return lastTime;
    }

    public void setLastTime(long lastTime) {
        this.lastTime = lastTime;
    }

    public RpcConsumer getRpcConsumer() {
        return rpcConsumer;
    }

    public void setRpcConsumer(RpcConsumer rpcConsumer) {
        this.rpcConsumer = rpcConsumer;
    }
}
